package com.xbongbong.pro.performanceset.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @description: 获取考核对象[员工/部门]列表
 * @Author: hongxiao
 * @date: 2019-02-15 20:53
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class PerformanceSetPermissionListDTO extends BaseDTO {
    /**
     * 指标id
     */
    @NotNull(message = "{dto.msg.performanceSetPermissionList.setId.NotNull}")
    private Long setId;
    /**
     * 业绩类型：1员工的业绩 2部门的业绩
     */
    @NotNull(message = "{dto.msg.performanceSetPermissionList.companyStructType.NotNull}")
    @Min(value = 1, message = "{dto.msg.performanceSetPermissionList.companyStructType.Min}")
    @Max(value = 2, message = "{dto.msg.performanceSetPermissionList.companyStructType.Max}")
    private Integer companyStructType;
    /**
     * 目标类型 1系统目标 2自定义目标
     */
    @NotNull(message = "指标类型不能为空")
    @Range(min=1,max=2,message = "目标类型传值异常")
    private Integer statisticsType;
}
